package com.scs.application.modules.dept.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.scs.application.core.mapper.IBaseMapper;
import com.scs.application.modules.base.entity.Matr;
import com.scs.application.modules.dept.entity.OprtUse;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 */
public interface OprtUseMapper extends IBaseMapper<OprtUse> {
    Page<?> pageForSelect(IPage page, @Param(Constants.WRAPPER) QueryWrapper<Matr> wrapper, @Param("params") Map<String,Object> params, @Param("userParam") Map<String,Object> userParam);


    OprtUse getOprtUse(@Param("rfid") String rfid, @Param("refKey") String refKey,
                              @Param("flagUseRedType") Integer flagUseRedType,@Param("patientNo") String patientNo);


    //所有可合单的病人消耗单，只要有一条明细未合并
    List<OprtUse> mergeList();

}
